{include file="admin/top.php" subject='products'}
{include file="products/top.php" subject='products'}
<div id="content">
  <form method="post">
  {products limit=1 id=$segment.id}
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">编号:</td>
        <td class="content">{$products.id}</td>
      </tr>
      <tr>
        <td class="title">产品名称:</td>
        <td class="content">{$products.pname}</td>
      </tr>
      <tr>
        <td class="title">产品规格:</td>
        <td class="content">{$products.spec}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">采购单价:</td>
        <td class="content">{$products.pricebuy}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">销售底价:</td>
        <td class="content">{$products.priceundersell}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">销售单价:</td>
        <td class="content">{$products.pricesell}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">库存单位:</td>
        <td class="content">{$products.unit}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">最小出库单位:</td>
        <td class="content">{$products.minnum}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">最大出库单位:</td>
        <td class="content">{$products.maxnum}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">预警数量:</td>
        <td class="content">{$products.shopwarningnum}&nbsp;</td>
      </tr>
      <tr>
        <td class="title">库存数量:</td>
        <td class="content">{$products.stocks} {$products.unit}
        {if $products.stocks>0}
        	&nbsp;/&nbsp;
        	{stocks productid=$products.id}
            	{$stocks.shop}: <strong>{$stocks.stocks}</strong> {$stocks.unit};
            {/stocks}
        {/if}
        &nbsp;</td>
      </tr>
      <tr>
        <td class="title">产品介绍:</td>
        <td class="content">{$products.intro|nl2br}&nbsp;</td>
      </tr>
      <tr class="noline">
        <td class="title">条码数字:</td>
        <td class="content">{$products.barcode}&nbsp;</td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <a href="?m=inventory&s=products.php" class="btn">确定</a> 
    </div>
    {/products}
  </form>
</div>
{include file="admin/bottom.php"}
</body>
</html>
